Fix VSX build with GCC 15
authorMaksim Shabunin <maksim.shabunin@gmail.com>
Thu, 18 Dec 2025 11:30:00 +0000 (12:30 +0100)
committerSantiago Vila <sanvila@debian.org>
Thu, 18 Dec 2025 11:30:00 +0000 (12:30 +0100)
Origin: upstream, https://github.com/opencv/opencv/commit/3effe195cb2cf4b7f98fe5e9b4df55aa4951d706
Bug-Debian: https://bugs.debian.org/1116253
Last-Update: 2025-01-16

Gbp-Pq: Name fix-vsx-build-with-gcc-15.patch

modules/core/include/opencv2/core/vsx_utils.hpp

index 79a1074d59ff334fe083625b4537bcc018aa2af9..4d5a694bae8e8fe1db7041c4a46fd94daed1e319 100644 (file)
@@ -257,8 +257,8 @@ VSX_IMPL_1VRG(vec_udword2, vec_udword2, vpopcntd, vec_popcntu)
 VSX_IMPL_1VRG(vec_udword2, vec_dword2,  vpopcntd, vec_popcntu)
 
 // converts between single and double-precision
-VSX_REDIRECT_1RG(vec_float4,  vec_double2, vec_cvfo, __builtin_vsx_xvcvdpsp)
-VSX_REDIRECT_1RG(vec_double2, vec_float4,  vec_cvfo, __builtin_vsx_xvcvspdp)
+VSX_REDIRECT_1RG(vec_float4,  vec_double2, vec_cvfo, vec_floate)
+VSX_REDIRECT_1RG(vec_double2, vec_float4,  vec_cvfo, vec_doubleo)
 
 // converts word and doubleword to double-precision
 #undef vec_ctd
@@ -399,10 +399,6 @@ VSX_REDIRECT_1RG(vec_ushort8, vec_ushort8, vec_popcntu, vec_popcnt)
 VSX_REDIRECT_1RG(vec_uint4,   vec_uint4,   vec_popcntu, vec_popcnt)
 VSX_REDIRECT_1RG(vec_udword2, vec_udword2, vec_popcntu, vec_popcnt)
 
-// converts between single and double precision
-VSX_REDIRECT_1RG(vec_float4,  vec_double2, vec_cvfo, __builtin_vsx_xvcvdpsp)
-VSX_REDIRECT_1RG(vec_double2, vec_float4,  vec_cvfo, __builtin_vsx_xvcvspdp)
-
 // converts word and doubleword to double-precision
 #ifdef vec_ctd
 #   undef vec_ctd